package cn.zwx.base.enums;

/**
 * @description: mqTopic定义
 * @projectName:rocket-mq-example
 * @see:cn.zwx.base.enums
 * @author:zhangwenxue
 * @createTime:2020/10/15 13:00
 * @version:1.0
 */
public enum MqTopicEnum {

     ORDER_TOPIC("order-service","order-service-create-order-topic"),
     ORDER_SERVICE("order-service","service-topic");

    private String applicationName;

    private String topic;


    MqTopicEnum(String applicationName, String topic) {
        this.applicationName = applicationName;
        this.topic = topic;
    }

    public String getApplicationName() {
        return applicationName;
    }

    public void setApplicationName(String applicationName) {
        this.applicationName = applicationName;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }
}
